Click
AutomatR.Windows.Activities.Click
The "Click" activity in AutomatR for Windows UI Automation allows you to interact with a specified UI element by simulating a click. This activity is useful for automating UI interactions involving buttons, links, or other clickable elements in Windows applications.
Properties
Name | Description |
---|---|
Input | |
Click Type | Specifies the type of click action to perform on the UI element. Options include Single (default), Double, and Right-click. |
Windows Selector | Specifies the selector that identifies the target UI element within the Windows application. It helps in uniquely identifying the UI element. String variables containing the selector. |
Windows Element | Indicates the UI element on the app with the help of the window selector window. InArgument<Selector> variables containing the UI element information. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Timeout | Specifies the time limit in seconds for the activity to be executed before throwing an exception. Integer variables containing the timeout duration. If not provided, the default timeout is used. |
Delay | Specifies the amount of time (in seconds) to wait before starting the activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Click" activity onto the workflow.
- Configure the properties by specifying either the Windows Selector or the Windows Element to identify the target clickable UI element.
- Optionally, choose the type of click action (Single, Double, or Right-click).
- Optionally, configure the timeout and delay settings.
- Execute the workflow to simulate the specified click action on the UI element.
Example: Consider an example where the "Click" activity is used to perform a single click on a button in a Windows application:
Click:
Display Name: "Click OK Button"
Windows Selector: "[Selector to identify the OK button]"
Click Type: Single
Timeout: 10
In this example, the activity uses the specified selector to identify the target button, performs a single click action, and sets a timeout of 10 seconds for the operation.